// Dynamic Loading Modules

// // User Info
// const User = resolve => { require.ensure(['../layouts/User.vue'], ()=>{ resolve(require('../layouts/User.vue')); }); };

//Pages
const Login = resolve => { require.ensure(['../pages/login/Login.vue'], ()=>{ resolve(require('../pages/login/Login.vue')); }); };
const RealDataViewer = resolve => { require.ensure(['../pages/RealDataViewer.vue'], ()=>{ resolve(require('../pages/RealDataViewer.vue')); }); };


export const routes = [
    {   path : '/real_data_view',
        components:{
            default:RealDataViewer
        }
    },
    {   path : '/',
        components:{
            default:RealDataViewer
        }
    },
    {
        path : '/components/auth',
        name: 'auth',
        component: { render (c) { return c('router-view') }},
        children:[
            {
                path: '/auth/login',
                component: Login,
                name: 'login',
                meta: {
                    default: false,
                    title: 'Login'
                }
            }
        ]
    }
];